package com.dura.search.service.impl;


import com.dura.search.service.SearchService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;

/**
 * @version 1.0
 * @Author 振鹏
 * @Date 2025/3/18 17:28
 * @注释
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class SearchServiceTest {

    @Autowired
    private SearchService searchService;
    @Test
    public void index() throws IOException {
        searchService.index("sms_submit_log_2025","2","{\"clientId:\": 2}");
    }

    @Test
    public void exists() throws IOException {
        Boolean sms_submit_log_2025 = searchService.exists("sms_submit_log_2025", "311516099906633728");
        System.out.println(sms_submit_log_2025);
    }
}